# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Firmicus <francois.archlinux.org> 
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Charles Mauch <cmauch@gmail.com>

pkgname=perl-html-template
pkgver=2.97
pkgrel=7
pkgdesc="A simple HTML templating system"
arch=('any')
url="https://search.cpan.org/dist/HTML-Template"
license=("GPL" "PerlArtistic")
depends=('perl')
checkdepends=('perl-cgi')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/S/SA/SAMTREGAR/HTML-Template-$pkgver.tar.gz")
sha512sums=('e1cb68db24db1692c0fb3838739798e5716340e3e78260ee95614af5bf29ee100cc86bbd15a2dda3bb98c7f2ecdf0e3ff8ca7775171a44d9ed347d7f9c850783')

build() {
  cd HTML-Template-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd HTML-Template-$pkgver
  make test
}

package() {
  cd HTML-Template-$pkgver
  make DESTDIR="$pkgdir" install
}
